define(['bootstrap'],function(bootstrap){
    
	var winWidth, winHeight;
	var resize = function() {
		winWidth = $(window).width(), winHeight = $(window).height();
		//alert(winWidth+'*'+winHeight);
		
		if (winWidth < 768) {
			$('html').css('overflow', 'auto');
			$('#main-left').css('overflow', 'hidden');
			$('#main-left').height('auto');
			$('#main-left2').css('overflow', 'hidden');
			$('#main-left2').height('auto');

			$('#tabcontent').css('overflow', 'hidden');
			$('#tabcontent').height('auto');
			
		} else {
			$('html').css('overflow', 'hidden');
			$('#main-left').css('border-right', 'thin solid #DDD');
			$('#main-left').css('background', '#FFFFFF');
			$('#main-left').css('overflow', 'auto');
			$('#main-left').height(winHeight);
			$('#main-left2').css('border-right', 'thin solid #DDD');
			$('#main-left2').css('background', '#FFFFFF');
			$('#main-left2').css('overflow', 'auto');
			$('#main-left2').height(winHeight);

			$('#tabcontent').css('overflow', 'auto');//不用iframe时使用
			$('#tabcontent').height(winHeight - 52 - $('#tabnav').height());
			
		}
		
	};
	return{
		resize:resize
	}


	});
